<html>
<head><meta charset="utf-8"><title>Installing rustup · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html">Installing rustup</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223402191"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223402191" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Michele <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223402191">(Jan 20 2021 at 16:59)</a>:</h4>
<p>I managed to get a working install of rustc-1.44.0 on my SPARC Solaris 11.4 machine. That gives me rustc and cargo.  I was able to install cbindgen with "cargo install cbindgen" and that worked fine.  Now I'm trying to install rustup but that doesn't seem to work:</p>
<p>root@hemlock:/bkpool/# cargo install rustup<br>
    Updating <a href="http://crates.io">crates.io</a> index<br>
error: could not find <code>rustup</code> in registry <code>https://github.com/rust-lang/crates.io-index</code></p>
<p>What am I doing wrong?  The goal is to update rust 1.44 to 1.48.</p>



<a name="223402366"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223402366" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223402366">(Jan 20 2021 at 17:00)</a>:</h4>
<p><span class="user-mention" data-user-id="372827">@Michele</span> <code>rustup install 1.48</code></p>



<a name="223402401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223402401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223402401">(Jan 20 2021 at 17:00)</a>:</h4>
<p>rustup manages cargo, not the other way around</p>



<a name="223403526"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223403526" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Michele <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223403526">(Jan 20 2021 at 17:07)</a>:</h4>
<p>Oh.  OK, stupid question no. 2: Where would the rustup command be?</p>
<p>root@hemlock:~# rustup install 1.48<br>
bash: rustup: command not found<br>
root@hemlock:~# echo $PATH<br>
/opt/clang/bin:/export/home/michele/.cargo/bin:/export/home/michele/rustc-1.44.0/bin:/usr/sbin:/usr/bin:/opt/csw/bin:.<br>
root@hemlock:~# cd rustc-1.44.0<br>
root@hemlock:~/rustc-1.44.0# cd bin<br>
root@hemlock:~/rustc-1.44.0/bin# ls<br>
cargo        rust-gdbgui  rustc<br>
rust-gdb     rust-lldb    rustdoc<br>
root@hemlock:~/rustc-1.44.0/bin#</p>



<a name="223403887"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223403887" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223403887">(Jan 20 2021 at 17:10)</a>:</h4>
<p>where did you get rustc from in the first place?</p>



<a name="223403891"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223403891" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223403891">(Jan 20 2021 at 17:10)</a>:</h4>
<p>I don't think there's a solaris release build of rustup though, so you do have a bit of a chicken-and-egg problem</p>



<a name="223403916"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223403916" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223403916">(Jan 20 2021 at 17:10)</a>:</h4>
<p>that's the same way you'd install the 1.48 version</p>



<a name="223403938"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223403938" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223403938">(Jan 20 2021 at 17:10)</a>:</h4>
<p><a href="https://rust-lang.github.io/rustup/installation/other.html">https://rust-lang.github.io/rustup/installation/other.html</a></p>
<blockquote>
<p>To install rustup from source, check out the git repository from <a href="https://github.com/rust-lang/rustup">https://github.com/rust-lang/rustup</a> and run cargo run --release. Note that currently rustup only builds on nightly Rust, and that after installation the rustup toolchains will supersede any pre-existing toolchains by prepending ~/.cargo/bin to the PATH environment variable.</p>
</blockquote>



<a name="223405985"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223405985" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Michele <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223405985">(Jan 20 2021 at 17:26)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> I got the rustc as a tarball from someone who took pity on me and my long-standing efforts to get rust for Solaris.  No skullduggery, I just don't have his permission to name him.<br>
<span class="user-mention" data-user-id="138448">@cuviper</span> Thanks for the link, I'll try that.</p>



<a name="223406259"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223406259" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223406259">(Jan 20 2021 at 17:28)</a>:</h4>
<p><span class="user-mention" data-user-id="372827">@Michele</span> before you go further -- I don't think rustup will be of much use to you</p>



<a name="223406264"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223406264" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223406264">(Jan 20 2021 at 17:28)</a>:</h4>
<p>see <a href="https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-2">https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-2</a></p>



<a name="223406301"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223406301" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223406301">(Jan 20 2021 at 17:29)</a>:</h4>
<p><code>sparcv9-sun-solaris</code> is only built as a <code>std</code> target, not a toolchain host</p>



<a name="223406515"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223406515" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223406515">(Jan 20 2021 at 17:30)</a>:</h4>
<p>if your pitying friend can't help with a newer version, I guess that leaves you to bootstrap through to newer versions yourself</p>



<a name="223406567"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223406567" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223406567">(Jan 20 2021 at 17:31)</a>:</h4>
<p>that is, use your 1.44 to build 1.45, then that to build 1.46, and so on</p>



<a name="223406632"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223406632" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223406632">(Jan 20 2021 at 17:31)</a>:</h4>
<p>or you could cross-compile from x86 to sparc maybe</p>



<a name="223407438"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223407438" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Michele <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223407438">(Jan 20 2021 at 17:38)</a>:</h4>
<p>Um, which one of those options would be easier?  I do have a working cross-compiler for SPARC on a Ubuntu box but if I'm only three versions back, maybe that method would be better.  And then I'd have rustup?</p>



<a name="223407539"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223407539" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223407539">(Jan 20 2021 at 17:39)</a>:</h4>
<p>rustup is only useful to download official builds from <a href="http://rust-lang.org">rust-lang.org</a> -- but those are limited for your platform</p>



<a name="223407670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223407670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223407670">(Jan 20 2021 at 17:40)</a>:</h4>
<p>well, it's also useful locally to switch between your installed versions. you just won't have any official builds to download</p>



<a name="223417219"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223417219" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Michele <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223417219">(Jan 20 2021 at 18:49)</a>:</h4>
<p>My ultimate goal is to build a recent version of Firefox for SPARC and Firefox apparently wants rustup at some point.</p>



<a name="223417964"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223417964" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Michele <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223417964">(Jan 20 2021 at 18:55)</a>:</h4>
<p>OK, so I git cloned rustup.  What should I do now?   ./rustup-init.sh?</p>



<a name="223417991"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223417991" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223417991">(Jan 20 2021 at 18:55)</a>:</h4>
<p><code>cargo run</code> should work</p>



<a name="223418058"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223418058" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223418058">(Jan 20 2021 at 18:56)</a>:</h4>
<p>right, because you have 1.44 installed, that should be fine</p>



<a name="223419712"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223419712" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223419712">(Jan 20 2021 at 19:08)</a>:</h4>
<p>FWIW, in Linux distros we build Firefox without using rustup, but I haven't looked at that build process myself</p>



<a name="223419728"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223419728" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223419728">(Jan 20 2021 at 19:08)</a>:</h4>
<p>(we = Fedora and RHEL, in my case)</p>



<a name="223430293"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Installing%20rustup/near/223430293" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Michele <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Installing.20rustup.html#223430293">(Jan 20 2021 at 20:26)</a>:</h4>
<p>Hmm, well perhaps like Rick in Casablanca, I was misinformed.  So, what, I just type "cargo run" in the rustup directory?  Noarguments needed?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>